﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Pages/Shared/Site.Master" AutoEventWireup="true" CodeBehind="EmployeeEdit.aspx.cs" Inherits="Presentation.Web.Pages.Employee.EmployeeEdit" %>
<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Add/Edit Employee
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <asp:HiddenField ID="hidEmployeeId" runat="server" />
    <div style =" padding:10px">
        <div style =" padding:10px">
            <asp:Label Id = "lblHeadTitle" runat = "server" Font-Bold = "true"/>
        </div>
        <table style="text-align: center;" border="0" width="100%" cellpadding="5" cellspacing="1">
            <tr>
                <td align = "right" width = "220">
                    <asp:Label ID = "lblName" runat = "server" Text = "Name" />
                </td>
                <td align = "left">
                    <asp:TextBox ID = "txtName" runat = "server" Width="400"/>
                    <asp:RequiredFieldValidator ID="rfvName" runat="server" ControlToValidate="txtName" SetFocusOnError="true"
                            Text="Name is required!" ValidationGroup="Save" ForeColor = "Red"/>
                </td>
            </tr>     
            <tr>
                <td align = "right" width = "220">
                    <asp:Label ID = "lblDescription" runat = "server" Text = "Description" />
                </td>
                <td align = "left">
                    <asp:TextBox ID = "txtDescription" TextMode = "MultiLine" Width = "600" Rows = "5" runat = "server" />
                    <asp:RequiredFieldValidator ID="rfvDescription" runat="server" ControlToValidate="txtDescription" SetFocusOnError="true"
                            Text="Description is required!" ValidationGroup="Save" ForeColor = "Red"/>
                </td>
            </tr>         
        </table>
        <div style =" padding:10px">
            <asp:Button ID = "btnSave" runat = "server" Text = "Save" OnClick = "btnSave_Click"/>
            <asp:Button ID = "btnBack" runat = "server" Text = "Back" OnClick = "btnBack_Click"/>
        </div>
    </div>
</asp:Content>
